<template>
    <div class="layout-main">
        <div>
            
            <div>
                <el-button type="primary" size="small" :loading="loading" @click="ok">确定清除</el-button>
            </div>
        </div>
    </div>
</template>
<script>
// import api from '@/api/api';
export default {
    name: 'Merchant',
    data() {
        return {
            loading: false,
            others: {
                btime: []
            },
            sysconfig: {
                adminLoginLog: 0,
                loginLog: 0,
                withdraw: 0,
                withdrawLog: 0,
                recharge: 0,
                rechargeLog: 0,
                payment: 0,
                btime: null,
                etime: null

            }

        };
    },
    mounted: function() {

    },
    methods: {
        cbtime: function(value) {
            if (value) {
                this.sysconfig.btime = value[0];
                this.sysconfig.etime = value[1];
            } else {
                this.sysconfig.btime = "";
                this.sysconfig.etime = "";
            }
        },

        ok: function() {
           
            me.loading = true;
            me.$http.post("/sys/sysconfig/doClear.action", {}).then(response => {
                var body = response;
                if (body.status == 0) {
                    me.successMessage("清除成功");

                } else {
                    me.errorMessage(body.info);
                }
                me.loading = false;
            }, response => {
                me.loading = false;
            });
        }
    }
}
</script>
<style scoped>
</style>